#include "io_control.h"

void io_control( void )
{
//  //24V过压过流中断信号
//  if( !GPIO_Alert_24V_ReadPin )
//  {
//    rk.flag.upload = true;
//    rk.upload.alarm_type = 0x01;
//    upload_package = upload_alarm_package;
//  }
//
//  //12V过压过流中断信号
//  if( !GPIO_Alert_12V_ReadPin )
//  {
//    rk.flag.upload = true;
//    rk.upload.alarm_type = 0x02;
//    upload_package = upload_alarm_package;
//  }
//
//  //过温中断信号
//  if( !GPIO_OT_INT_ReadPin )
//  {
//    rk.flag.upload = true;
//    rk.upload.alarm_type = 0x03;
//    upload_package = upload_alarm_package;
//  }

  //4G模块开机/关机
  if( 0 )
  {

  }

  //4G模块复位
  if( 0 )
  {

  }

  //屏幕信号切换
  if( 0 )
  {

  }

  //屏幕电源切换
  if( 0 )
  {

  }

  //兴源编码器电源
  if( 0 )
  {

  }

  //兴源水位计电源
  if( 0 )
  {

  }

  //电机电压
  if( 0 )
  {

  }

  //电机电压
  if( 0 )
  {

  }

  //兴源的门限开关




  //风扇电源24V
  if( 0 )
  {

  }

  //LED1 前面板
  if( 0 )
  {

  }

  //喂狗信号
  if( 0 )
  {

  }

  //运行灯 板载
  if( 0 )
  {

  }

  //485 TX EN
  if( 0 )
  {

  }

  //485 RX EN
  if( 0 )
  {

  }

  //485 TX EN
  if( 0 )
  {

  }

  //485 RX EN
  if( 0 )
  {

  }

  //485 TX EN
  if( 0 )
  {

  }

  //485 RX EN
  if( 0 )
  {

  }

  //北京绝对值编码器供电
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) )
  {

  }

  //北京增量编码器供电
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) )
  {

  }


  //北京光电开关1供电
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) )
  {

  }

  //北京光电开关2供电
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) )
  {

  }

  //北京光电开关1 DI
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) && GPIO_DI1_MCU_ReadPin )
  {

  }

  //北京光电开关2 DI
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) && GPIO_DI2_MCU_ReadPin )
  {

  }

  //北京门限开关1 DI
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) && GPIO_DI3_MCU_ReadPin )
  {

  }

  //北京门限开关2 DI
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) && GPIO_DI4_MCU_ReadPin )
  {

  }

  //电机驱动器的供电
  if( 0 )
  {

  }

  //北京流速计的供电电压
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) )
  {

  }

  //北京水位计的供电电压
  if( (RK_PROJECT == ATMT_ONE_CULUMN_PROJECT) || (RK_PROJECT == ATMT_TWO_CULUMN_PROJECT) )
  {

  }

  //4G模块 供电
  if( 0 )
  {

  }

  //拨码开关KEY1
  if( GPIO_KEY_ID1_ReadPin )
  {
    rk.upload.target = To_Server;
  }
  else
  {
    rk.upload.target = To_Local;
  }

  //拨码开关KEY2
  if( GPIO_KEY_ID2_ReadPin )
  {

  }

  //屏幕供电
  if( 0 )
  {

  }
}